home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-07
/
stub41.zip
/
STUB.DOC
< prev
next >
Wrap
Text File
|
1991-06-13
|
9KB
|
304 lines
AI-LANBIOS low level "stub" driver
Preliminary Documentation
==================================
(C) Copyright 1991 ARTISOFT Inc.
ALL RIGHTS RESERVED
Introduction
============
The STUB low level AI-LANBIOS driver is part of the AI-LANBIOS
product. The low level driver is supposed to interface directly to
network hardware, however, the STUB driver interfaces to no
hardware, thus providing a local-only AI-LANBIOS interface.
Running STUB
============
The STUB low level driver must be run before the AI-LANBIOS. The
STUB driver interfaces to the AI-LANBIOS using a DOS multiplex
interrrupt number. The default multiplex number is C7. If you are
only running one low level driver and one copy of AI-LANBIOS then
you will not have to concern yourself with which multiplex number
to assign. Multiplex numbers 00 through BF are reserved for DOS
use so you must use a multiplex number between C0 through FF.
You must start a different invocation of the STUB driver if you
plan to simulate multiple adapters.
The STUB low level driver program name is STUB.EXE. The syntax for
STUB is
STUB[switches...] [ ; comment]
where [switches...] denotes zero or more optional command line
switches. Switches may be delimited by blanks or slashes (/). If
a switch takes a value, the switch must be followed by an equal
sign (=) or a colon (:). Some values may be hexidecimal numbers
while other values may be decimal. All switch values are range
checked and illegal values produce errors.
You may place a comment on the command line by preceeding the
comment with a semicolon (;). You must preceed the comment
character with a blank.
The following are valid switch formats:
SWITCH
SWITCH:value
/SWITCH
/SWITCH=value
@file
The valid STUB switches are enumerated below. The letters "ddd"
denote a decimal number. The letters "hh" denote a hexidecimal
number. Values enclosed in [] indicate default values if the
switch is omitted. Values after [] denote the valid range of the
switch.
----------
The switch
@indirect-file
specifies that further switches are to be taken from an indirect
file. Any switches after @indirect-file will be discarded. You
may invoke indirect files from within indirect files as many times
as you wish.
The indirect file should contain valid switches and may contain
comment characters (;) at the beginning of each line or after
switches.
For example,
STUB @setup
The file SETUP contains
; STUB AI-LANBIOS driver setup file
;
packet_size=4096 ; Set to small packet size
verbose ; Display verbose information
----------
The switch
HELP or ?
displays information about the valid command line switches, but
does not install the STUB driver. For example,
STUB/help
STUB ?
See the messages section for a detailed description of the HELP
display output.
----------
The switch
MPX=hh [C7] C0..FF
specifies the multiplex (MPX) interrupt number to use for
communication to the high level AI-LANBIOS. You will need to
change this value only if the MPX number is in use by another
application or low level driver.
----------
The switch
PACKET_SIZE=dddd [65535] 512..65535
specifies the maximum size packet that the low level driver will
report to the AI-LANBIOS. Specifying a packet size smaller than
the default has no effect other than to reduce the performance of
the NETBIOS.
----------
The switch
REMOVE
causes the STUB driver to remove itself from memory.
----------
The switch
VERBOSE
causes the STUB driver to be installed and detailed information
about the configuration of the STUB driver to be displayed. See
the messages section for a detailed description of the verbose
output.
STUB messages
=============
The STUB driver produces two types of messages: Informative and
Error. All error messages are preceeded by the text "ERROR:" and
cause the STUB driver not to be installed.
--------
MESSAGE:
AI-LANBIOS STUB driver V1.01 - (C) Copyright 1991 ARTISOFT Inc.
This message is displayed each time the low level driver is
invoked.
--------
MESSAGE:
---- STUB driver installed ----
This message is displayed after the low level driver is
successfully installed.
--------
MESSAGE:
---- STUB driver NOT installed ----
This message is displayed if the low level driver is not installed.
The driver will not be installed if help information is displayed
or an error occured.
--------
MESSAGE:
---- STUB removed ----
This message is displayed when the low level driver has been successfully
removed from memory using the REMOVE switch on the STUB command line.
--------
MESSAGE:
Command line /verbose
MPX interface number C7 Bytes of memory used
1888
This message is displayed if the VERBOSE switch is specified. The
values displayed specify how the low level driver is configured.
--------
MESSAGE:
Valid command line switches:
HELP
MPX= range 00 to FF hex
PACKET_SIZE= range 512 to 65535 decimal
VERBOSE
?
@ range 0 to 3000 byte file
This message is displayed when the HELP or ? switch is used. Each
valid switch is listed with the acceptable range of values (if any)
and the base (hex or decimal) that the numbers must be entered in.
The acceptable file size range for indirect files (@) is also
listed.
The low level driver is not installed when this switch is used.
------
ERROR: MPX number hh is already in use - Try another number
Meaning: Multiplex (MPX) interrupt number hh is being used by
another application or low level driver.
Remedy: Try another MPX number.
------
ERROR: Illegal switch - ??????=nnnn
Meaning: The switch ??????=nnnn is not a recognized switch.
Remedy: You may only specify legal switches on the command line.
------
ERROR: Illegal character after switch name - ??????xnnnn
Meaning: The switch ?????? is followed by a character other than
'=' or ':' or the switch does not take a value.
Remedy: Only use the characters '=' or ':' to specify switch
values and do not place characters after switches that do not take
values.
------
ERROR: Switch value not in range - ??????=nnnn
Valid range is ssss to eeee
Meaning: The value nnnn is not in proper range. The value ssss
represents the lowest acceptable value and the the value
eeee represents the highest acceptable value.
Remedy: Limit your range of values to the acceptable range.
------
ERROR: Illegal digit in switch value - ??????=nnnn
Meaning: An illegal digit (character) was encountered in the
numeric switch value.
Remedy: You must restrict numeric decimal values to the numbers
0-9. You must restrict hexidecimal values to the numbers 0-9 and
the letters A-F.
------
ERROR: Cannot open indirect file - @file
Meaning: The file "file" cannot be opened as an indirect file.
Remedy: The file must exist before it can be used as an indirect
file.
------
ERROR: Can't REMOVE -- AI-LANBIOS(R) still installed
Meaning: STUB cannot be removed from memory because the AI-LANBIOS(R) is
is still installed.
Remedy: REMOVE the AI-LANBIOS(R) from memory before trying to remove the
STUB driver.
------
ERROR: STUB is not loaded
Meaning: STUB cannot be removed from memory because it is not installed.
Remedy: STUB must be installed before it can be removed from memory.
------
ERROR: Installed STUB is different version
Meaning: The STUB driver that is installed is a different version than the
one trying to remove it.
Remedy: Check to see that both versions match before attempting to remove.
------
ERROR: Can't REMOVE -- STUB interrupts re-hooked
Meaning: The STUB driver cannot be removed from memory because one of it's
hooked interrupt vectors has been re-hooked by another program.
Remedy: If possible, remove the program that has re-hooked one of STUB's
interrupt vectors.
Testing STUB return code (error level)
======================================
You may test the STUB return code or error level in a batch file
by using the IF ERRORLEVEL command. The following error levels are
returned:
0 No error has encountered. WD8003 driver installed
1 MPX number is in use
2 Switch error
3 Can't remove STUB from memory - not installed
4 Can't remove STUB from memory - different version installed
5 Can't remove STUB from memory - vectors rehooked
6 Can't remove STUB from memory - AILANBIO still installed